package fr.uniscol.model.geo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import fr.uniscol.model.DonneeUniscol;
import fr.uniscol.model.Etablissement;
import fr.uniscol.siecle.model.DonneeSiecle;

public class Academie implements Serializable, DonneeUniscol {

	private String code = null;
	
	private String nom = null;
	
	private List<Departement> departements = null;
	
	private List<Etablissement> etablissements = null;
	
	public Academie(){
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public List<Departement> getDepartements() {
		if(departements == null){
			departements = new ArrayList<Departement>();
		}
		return departements;
	}

	public void setDepartements(List<Departement> departements) {
		this.departements = departements;
	}

	public List<Etablissement> getEtablissements() {
		if(etablissements == null){
			etablissements = new ArrayList<Etablissement>();
		}
		return etablissements;
	}

	public void setEtablissements(List<Etablissement> etablissements) {
		this.etablissements = etablissements;
	}
}
